package com.yujistu.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.TextView;

import com.andexert.library.RippleView;
import com.yujistu.R;
import com.yujistu.fragment.appointfragment.StudEvaltionFragment;

/**
 * Created by Win on 2015/11/11.
 */
public class StudEvalActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail_league);

        initView();
    }

    private void initView() {
        RippleView titleRV = (RippleView)findViewById(R.id.backRV);
        titleRV.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener() {
            @Override
            public void onComplete(RippleView rippleView) {

            }
        });
        TextView titleTV = (TextView)findViewById(R.id.title_right_widget);
        titleTV.setVisibility(View.VISIBLE);
        TextView centerTV = (TextView)findViewById(R.id.tv_title_title);
        centerTV.setVisibility(View.VISIBLE);
        centerTV.setText("学员评价");

    }

    @Override
    protected void onResume() {
        super.onResume();

        StudEvaltionFragment fragment = new StudEvaltionFragment();
        FragmentTransaction  ft = getSupportFragmentManager().beginTransaction();
        ft.add(R.id.real_content, fragment);
        ft.commit();
    }
}
